<div class="col-xs-10 col-xs-offset-1 form-horizontal mt20">
	<div class="panel ">
		<div class="panel-default text-center">
			<font face="Courier" class="" size="5">设备信息</font>
		</div>

		<div class="panel-body">
			<div class="form-group">
				<label class="col-xs-2 control-label">设备码</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="请输入设备码，该码作为设备的唯一标识，不能重复" ng-model="obj.code">
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">使用地点</label>
				<div class="col-xs-6">
					<!--<select class="form-control" ng-model="obj.view" ng-options="view.code as view.name for view in viewarr" ng-disabled="lock">
            </select>-->
					<ui-select ng-model="obj.view" theme="bootstrap" ng-disabled="lock">
						<ui-select-match placeholder="请选择一个地点">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
							<span ng-bind-html="item.name | highlight: $select.search"></span>
						</ui-select-choices>
					</ui-select>
				</div>
				<div class="col-xs-2">
					<button type="button" class="btn btn-primary " ng-click="remove()" ng-if="what == 'edit'">
				    	解除绑定
				    </button>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">密码</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="请输入密码" ng-model="obj.pas">
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">备注</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="请输入备注" ng-model="obj.remarks">
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">设备类型</label>
				<div class="col-xs-6">
					<select class="form-control" ng-model="obj.type" ng-options="type.code as type.name for type in typearr">
            		</select>
				</div>
			</div>

			<div class="form-group" ng-if="obj.type == 5 || obj.type == 6">
				<label class="col-xs-2 control-label">打印票长度</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="打印票长度" ng-model="obj.print_ticket_length">
				</div>
			</div>

			<div class="form-group" ng-if="obj.type == 5 || obj.type == 6">
				<label class="col-xs-2 control-label">打印票宽度</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="打印票宽度" ng-model="obj.print_ticket_width">
				</div>
			</div>

			<div class="form-group" ng-if="obj.type == 5 || obj.type == 6">
				<label class="col-xs-2 control-label">打印票X轴</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="打印票X轴" ng-model="obj.print_ticket_x_axis">
				</div>
			</div>

			<div class="form-group" ng-if="obj.type == 5 || obj.type == 6">
				<label class="col-xs-2 control-label">打印票y轴</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="打印票y轴" ng-model="obj.print_ticket_y_axis">
				</div>
			</div>

			<div class="form-group" ng-if="obj.type == 5 || obj.type == 6">
				<label class="col-xs-2 control-label">打印模板</label>
				<div class="col-xs-6">
					<input type="text" class="form-control" placeholder="打印模板" ng-model="obj.print_templete_code">
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">设备状态</label>
				<div class="col-xs-3">
					<label class="radio-inline">
					  <input type="radio" name="state" ng-value="0"
					  ng-model="obj.state"
					  > 不可用
					</label>
					<label class="radio-inline">
					  <input type="radio" name="state" ng-value="1"
					  ng-model="obj.state"
					  > 可用
					</label>
				</div>
				<div class="col-xs-7">
					<p class="text-danger mt10">设备是否可用，请慎重选择</p>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">散票-权限状态</label>
				<div class="col-xs-3">
					<label class="radio-inline">
					  <input type="radio" name="auth_state" ng-value="0"
					  ng-model="obj.auth_state"
					  > 不启用
					</label>
					<label class="radio-inline">
					  <input type="radio" name="auth_state" ng-value="1"
					  ng-model="obj.auth_state"
					  > 启用
					</label>
				</div>
				<div class="col-xs-7">
					<p class="text-danger mt10">如果启用改选项，设备就必须配置票种，未配置的票种不能验证。</p>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">散票-销验票数量</label>
				<div class="col-xs-3">
					<label class="radio-inline">
					  <input type="radio" name="many_state" ng-value="0"
					  ng-model="obj.many_state"
					  > 单张
					</label>
					<label class="radio-inline">
					  <input type="radio" name="many_state" ng-value="1"
					  ng-model="obj.many_state"
					  > 多张
					</label>
				</div>
				<div class="col-xs-7">
					<p class="text-danger mt10">如果选择单张，每次只能消一张</p>
				</div>
			</div>

			<div class="form-group">
				<label class="col-xs-2 control-label">团票-权限状态</label>
				<div class="col-xs-3">
					<label class="radio-inline">
						<input type="radio" name="group_auth_state" ng-value="0"
						ng-model="obj.group_auth_state"
						> 不启用
					</label>
					<label class="radio-inline">
						<input type="radio" name="group_auth_state" ng-value="1"
						ng-model="obj.group_auth_state"
						> 启用
					</label>
				</div>
				<div class="col-xs-7">
					<p class="text-danger mt10">团票验证权限</p>
				</div>
			</div>

			<!-- 闸机 -->
			<div ng-if="obj.type == 2">

				<div class="form-group">
					<label class="col-xs-2 control-label">打印后是否销票</label>
					<div class="col-xs-6">
						<label class="radio-inline">
						<input type="radio" name="print_destory_type" ng-value="'0'"
						ng-model="obj.print_destory_type"
						> 销票
					</label>
						<label class="radio-inline">
						<input type="radio" name="print_destory_type" ng-value="'1'"
						ng-model="obj.print_destory_type"
						> 不销票
					</label>
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10">针对是否有闸机景区</p>
					</div>
				</div>

			</div>

			<!-- 双屏pos -->
			<div ng-if="obj.type == 6">

				<div class="form-group">
					<label class="col-xs-2 control-label">绑定登录用户</label>
					<div class="col-xs-6">
						<input type="text" class="form-control" placeholder="请输入密码" ng-model="obj.seller_login_code">
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10">自助售票机，双屏pos机填写此项</p>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-2 control-label">域名设置</label>
					<div class="col-xs-6">
						<input type="text" class="form-control" placeholder="域名设置" ng-model="obj.netarea">
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10"></p>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-2 control-label">webssocket地址</label>
					<div class="col-xs-6">
						<input type="text" class="form-control" placeholder="webssocket地址" ng-model="obj.websocket">
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10"></p>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-2 control-label">是否启用刷居游卡</label>
					<div class="col-xs-6">
						<label class="radio-inline">
						<input type="radio" name="check_juyoucard_type" ng-value="'0'"
						ng-model="obj.check_juyoucard_type"
						> 启用
					</label>
						<label class="radio-inline">
						<input type="radio" name="check_juyoucard_type" ng-value="'1'"
						ng-model="obj.check_juyoucard_type"
						> 不启用
					</label>
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10"></p>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-2 control-label">是否启用刷身份证</label>
					<div class="col-xs-6">
						<label class="radio-inline">
						<input type="radio" name="check_personcard_type" ng-value="'0'"
						ng-model="obj.check_personcard_type"
						> 销票
					</label>
						<label class="radio-inline">
						<input type="radio" name="check_personcard_type" ng-value="'1'"
						ng-model="obj.check_personcard_type"
						> 不销票
					</label>
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10"></p>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-2 control-label">打印票类型</label>
					<div class="col-xs-6">
						<label class="radio-inline">
						<input type="radio" name="print_ticket_type" ng-value="'0'"
						ng-model="obj.print_ticket_type"
						> 销票
					</label>
						<label class="radio-inline">
						<input type="radio" name="print_ticket_type" ng-value="'1'"
						ng-model="obj.print_ticket_type"
						> 景区定制门票
					</label>
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10"></p>
					</div>
				</div>

				<div class="form-group">
					<label class="col-xs-2 control-label">票码类型</label>
					<div class="col-xs-6">
						<label class="radio-inline">
						<input type="radio" name="ticket_code_type" ng-value="'0'"
						ng-model="obj.ticket_code_type"
						> 一单一码
					</label>
						<label class="radio-inline">
						<input type="radio" name="ticket_code_type" ng-value="'1'"
						ng-model="obj.ticket_code_type"
						> 一单多码
					</label>
					</div>
					<div class="col-xs-4">
						<p class="text-danger mt10"></p>
					</div>
				</div>
			</div>




			<div class="form-group">
				<label class="col-xs-2 control-label">sign_key</label>
				<div class="col-xs-4">
					<p class="form-control-static">{{obj.sign_key}}</p>
				</div>
				<div class="col-xs-6">
					<p class="text-danger mt10">用于外部接口调用设备核销</p>
				</div>
			</div>


			<!--
			<div class="form-group">
				<label class="col-xs-2 control-label">修改时间</label>
				<div class="col-xs-6">
					<p class="form-control-static">{{obj.update_time}}</p>
				</div>
			</div>-->

			<button type="button" class="btn btn-primary btn-lg btn-block" ng-click="gogo()">
    提交
    </button>
		</div>
	</div>

</div>